﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="User.aspx.cs" Inherits="Project_mfa.User.User" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphcontent" runat="server">
    <div class="row">
        <div class="col col_19">
            <div class="row">
                <div class="col col_6">
                   U are logged in as: <%= HttpContext.Current.User.Identity.Name %>
                </div>
                <div class="col col_6">
                    <asp:LoginStatus runat="server" ID="userStatus" />
                </div>
            </div>
            <div class="row">
                <div class="col col_16">
                    <hr />
                </div>
            </div>
            <h2>Festivals </h2>

            <br />
            <asp:GridView ID="GridView1" ShowFooter="True" runat="server" AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="fest_id" DataSourceID="EntityDataSource1" BorderColor="#336666" BorderStyle="Double" BorderWidth="3px" CellPadding="4" GridLines="Horizontal">

                <Columns>
                    <asp:BoundField DataField="fest_id" HeaderText="ID" ReadOnly="True" SortExpression="fest_id" />
                    <asp:BoundField DataField="fest_naam" HeaderText="Name" SortExpression="fest_naam" />
                    <asp:BoundField DataField="fest_locatie" HeaderText="Location" SortExpression="fest_locatie" />
                    <asp:BoundField DataField="fest_datum" HeaderText="Date" SortExpression="fest_datum" />
                    <asp:BoundField DataField="fest_duur" HeaderText="Duration" SortExpression="fest_duur" />
                    <asp:CommandField HeaderText="Delete/Edit" ShowDeleteButton="True" ShowEditButton="True" ShowHeader="True" />

                </Columns>


                <FooterStyle BackColor="Snow" ForeColor="#333333" />
                <HeaderStyle BackColor="#6755ab" ForeColor="Snow" />
                <PagerStyle BackColor="#6755ab" ForeColor="Snow" HorizontalAlign="Center" />
                <RowStyle BackColor="Snow" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#F7F7F7" />
                <SortedAscendingHeaderStyle BackColor="#6755ab" />
                <SortedDescendingCellStyle BackColor="#E5E5E5" />
                <SortedDescendingHeaderStyle BackColor="#6755ab" />


            </asp:GridView>

            <asp:EntityDataSource ID="EntityDataSource1" runat="server" ConnectionString="name=groep1_festivalsEntities" DefaultContainerName="groep1_festivalsEntities" EnableFlattening="False" EntitySetName="festivals" EntityTypeFilter="festivals" EnableDelete="true" EnableInsert="true" EnableUpdate="true">
            </asp:EntityDataSource>

        </div>
    </div>
</asp:Content>
